package com.mingtai.design.pattern.structuralming.decorator;

/**
 * @description: 鸡蛋装饰者
 * @author: mingtai
 * @createDate: 23:42 2021/1/11
 * @version: 1.0
 */

public class EggDecorator extends AbstractDecorator{
    public EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    protected String getDesc() {
        return super.getDesc() + " 加个鸡蛋 ";
    }

    @Override
    protected int cost() {
        return super.cost() + 1;
    }
}



